﻿@{
    ViewBag.Title = "配置人员";
    Layout = "~/Views/Shared/_ConfigurationLayout.cshtml";
}

<script type="text/javascript">

    $(function () {
        var pager = new PagerView('pager');
        pager.itemCount = parseInt($("#itemCount").val(), 10);
        pager.pageCount = parseInt($("#pageCount").val(), 10);
        pager.size = parseInt($("#size").val(), 10);
        pager.index = parseInt($("#index").val(), 10);
        pager.onclick = function (index) {
            $("#index").val(index);
            getMyRoleConfig();
        };
        pager.render();
    });
</script>
@model List<Wicresoft.SelfService.DAO.RolesConfig>
<div class="right_title">配置人员</div>
<div class="right_box_top ui-icons">
</div>
<div class="right_box_bg">
    <div class="right_table">
        <div class="decoP">
            <div class="box_bg_decoP_B">
                    <table class="MSGridView" cellpadding="0" cellspacing="1" border="0" width="100%" id="userInfoList" >
                        <tbody>
                            <tr>
                                 <th>
                                     账号名
                                </th>
                                <th>
                                      姓名
                                 </th>
                                <th>
                                      管理员身份
                                 </th>
                                <th>
                                      角色
                                </th>
                                <th>
                                    地市
                                </th>
                            </tr>
                            @foreach (Wicresoft.SelfService.DAO.RolesConfig RC in Model)
                            {
                                <tr class="AlternatingRowStyle">
                                    <td>
                                        @RC.accountID                                    
                                    </td>
                                    <td>
                                        @RC.userName                                  
                                    </td>
                                    <td>
                                        @RC.isAdmin                                  
                                    </td>
                                    <td>
                                        @RC.roleName                                
                                    </td>
                                    <td>
                                        @RC.company
                                    </td>
                                </tr>
                            }                                                     
                        </tbody>        
                    </table>
            <div id="pager">
            </div>
            <div >
            <fieldset>
                <legend>修改权限</legend>
              @*用户ID：<p id="curID"></p>*@
                <table id="configArea" cellpadding="0" cellspacing="1" border="0" width="100%" >
                     <tr style="height:25px">
                        <td style="width:10%" align="right">
                            账号名：
                        </td>   
                        <td style="width:10%" align="left">
                             <label id="curID" />
                             @*<input type="text" readonly="readonly" id="curID"/>*@
                        </td>  
                        <td style="width:15%" align="right">
                            管理员身份：
                        </td> 
                        <td style="width:5%" align="left">
                            <input type="checkbox" name="isAdmin" id="updateAdmin"/>
                        </td>
                        <td style="width:10%" align="right">
                            用户角色：
                        </td>
                        <td style="width:10%" align="left">
                            <select name="roleName" id="roleName">
                                    
                                    <option value="1">审批人</option>
                                    <option value="2">主任</option>
                                    @*<option value="3">省接口人</option>
                                    <option value="4">省主任</option>*@
                                    <option value="6">普通用户</option>
                            </select>
                        </td>
                        <td align="center">
                            <input type="submit" id="updateBtn" class="Button1 ui-icons subForward" value="确定"/>
                        </td>         
                    </tr>
                </table>
            </fieldset>
            </div>
            </div>
        </div>
    </div>
</div>
<p>
    <input type="hidden" id="itemCount" value=@ViewData["count"]/>
    <input type="hidden" id="size" value=@ViewData["size"]/>
    <input type="hidden" id="index" value=@ViewData["index"]/>
</p>
<div class="right_box_down ui-icons">
</div>